package com.lin.spring.aop;


import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @ClassName PointCutAfter
 * @Description pointercutafter
 * @Author lin
 * @Date 2021/11/10 上午12:03
 * @Version V1.0
 */
public class PointCutAfter implements AfterReturningAdvice {

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println(returnValue);
        System.out.println(method);
        System.out.println(args);
        System.out.println(target);
        System.out.println("这是我定义的后置通知");
    }
}
